<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%> <!-- thu vien phan trang -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>List Government</title>
<link rel="stylesheet" href="css/screen.css" type="text/css"
	media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
<![endif]-->

<!--  jquery core -->
<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>

<!--  checkbox styling script -->
<script src="js/jquery/ui.core.js" type="text/javascript"></script>
<script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
<script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
<script type="text/javascript">
	function submitAction() {
		document.forms["listGoverment"].submit();
	}
</script>
<script type="text/javascript">
	$(function() {
		$('input').checkBox();
		$('#toggle-all').click(function() {
			$('#toggle-all').toggleClass('toggle-checked');
			$('#mainform input[type=checkbox]').checkBox('toggle');
			return false;
		});
	});
</script>

<!--[if !IE 7]-->

<!--  styled select box script version 1 -->
<script src="js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(
			function() {
				$('.styledselect').selectbox({
					inputClass : "selectbox_styled"
				});
				$('#product-table th').addClass(
						"table-header-repeat line-left minwidth-1");
				$('#product-table').width("100%");
			});
</script>


<!--[endif]-->

<!--  styled select box script version 2 -->
<script src="js/jquery/jquery.selectbox-0.5_style_2.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('.styledselect_form_1').selectbox({
			inputClass : "styledselect_form_1"
		});
		$('.styledselect_form_2').selectbox({
			inputClass : "styledselect_form_2"
		});
	});
</script>

<!--  styled select box script version 3 -->
<script src="js/jquery/jquery.selectbox-0.5_style_2.js"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('.styledselect_pages').selectbox({
			inputClass : "styledselect_pages"
		});
	});
</script>

<!--  styled file upload script -->
<script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
	$(function() {
		$("input.file_1").filestyle({
			image : "images/forms/choose-file.gif",
			imageheight : 21,
			imagewidth : 78,
			width : 310
		});
	});
</script>

<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>

<!-- Tooltips -->
<script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function() {
		$('a.info-tooltip ').tooltip({
			track : true,
			delay : 0,
			fixPNG : true,
			showURL : false,
			showBody : " - ",
			top : -35,
			left : 5
		});
	});
</script>


<!--  date picker script -->
<link rel="stylesheet" href="css/datePicker.css" type="text/css" />
<script src="js/jquery/date.js" type="text/javascript"></script>
<script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
	$(function() {

		// initialise the "Select date" link
		$('#date-pick').datePicker(
		// associate the link with a date picker
		{
			createButton : false,
			startDate : '01/01/2005',
			endDate : '31/12/2020'
		}).bind(
		// when the link is clicked display the date picker
		'click', function() {
			updateSelects($(this).dpGetSelected()[0]);
			$(this).dpDisplay();
			return false;
		}).bind(
		// when a date is selected update the SELECTs
		'dateSelected', function(e, selectedDate, $td, state) {
			updateSelects(selectedDate);
		}).bind('dpClosed', function(e, selected) {
			updateSelects(selected[0]);
		});

		var updateSelects = function(selectedDate) {
			var selectedDate = new Date(selectedDate);
			$('#d option[value=' + selectedDate.getDate() + ']').attr(
					'selected', 'selected');
			$('#m option[value=' + (selectedDate.getMonth() + 1) + ']').attr(
					'selected', 'selected');
			$('#y option[value=' + (selectedDate.getFullYear()) + ']').attr(
					'selected', 'selected');
		}
		// listen for when the selects are changed and update the picker
		$('#d, #m, #y').bind('change', function() {
			var d = new Date($('#y').val(), $('#m').val() - 1, $('#d').val());
			$('#date-pick').dpSetSelected(d.asString());
		});

		// default the position of the selects to today
		var today = new Date();
		updateSelects(today.getTime());

		// and update the datePicker to reflect it...
		$('#d').trigger('change');
	});
</script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$(document).pngFix();
	});
</script>
</head>
<body>
	<!-- Start: page-top-outer -->
	<div id="page-top-outer">

		<!-- Start: page-top -->
		<div id="page-top">
			<!--  start top-search -->
			<div id="top-search">
				<table>
					<tr>
						<td><input type="text" value="Search"
							onblur="if (this.value=='') { this.value='Search'; }"
							onfocus="if (this.value=='Search') { this.value=''; }"
							class="top-search-inp" /></td>
						<td><select class="styledselect">
								<option value="">All</option>
								<option value="">Name</option>
								<option value="">Index</option>
						</select></td>
						<td><input type="image"
							src="images/shared/top_search_btn.gif" /></td>
					</tr>
				</table>
			</div>
			<!--  end top-search -->
			<div class="clear"></div>

		</div>
		<!-- End: page-top -->

	</div>
	<!-- End: page-top-outer -->

	<div class="clear">&nbsp;</div>

	<!--  start nav-outer-repeat................................................................................................. START -->
	<div class="nav-outer-repeat">
		<!--  start nav-outer -->
		<div class="nav-outer">

			<!-- start nav-right -->
			<div id="nav-right">

				<div class="nav-divider">&nbsp;</div>
				<div class="showhide-account">
					<img src="images/shared/nav/nav_myaccount.gif" width="93"
						height="14" alt="" />
				</div>
				<div class="nav-divider">&nbsp;</div>
				<a href="" id="logout"><img
					src="images/shared/nav/nav_logout.gif" width="64" height="14"
					alt="" /></a>
				<div class="clear">&nbsp;</div>
			</div>
			<!-- end nav-right -->


			<!--  start nav -->
			<div class="nav">
				<div class="table">

					<ul class="select">
						<li><a href="index.jsp"><b>Home</b> <!--[if IE 7]><!--></a> <!--<![endif]-->
							<!--[if lte IE 6]><table><tr><td><![endif]--> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
						</li>
					</ul>

					<div class="nav-divider">&nbsp;</div>

					<ul class="select">
						<li><a href="#"><b>Organisation</b> <!--[if IE 7]><!--></a> <!--<![endif]-->
							<!--[if lte IE 6]><table><tr><td><![endif]--> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
						</li>
					</ul>

					<div class="nav-divider">&nbsp;</div>

					<ul class="select">
						<li><a href="#"><b>Services</b> <!--[if IE 7]><!--></a> <!--<![endif]-->
							<!--[if lte IE 6]><table><tr><td><![endif]-->
							<div class="select_sub show">
								<ul class="sub">
									<li><a href="listaction.action">Programme
											Maintenance</a></li>
									<li class="sub_show"><a href="#">Service Maintenance</a></li>
								</ul>
							</div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
					</ul>

					<div class="nav-divider">&nbsp;</div>

					<ul class="select">
						<li><a href="listContact.action"><b>Contact</b> <!--[if IE 7]><!--></a>
							<!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
					</ul>

					<div class="nav-divider">&nbsp;</div>

					<ul class="select">
						<li><a><b>Geography</b> <!--[if IE 7]><!--></a> <!--<![endif]-->
							<!--[if lte IE 6]><table><tr><td><![endif]-->
							<div class="select_sub">
								<ul class="sub">
									<li><a href="#nogo">Trust Regions</a></li>
									<li><a href="#nogo">Trust Districts Maintenances</a></li>
									<li><a href="listGov.action">Government Office Region
									</a></li>
								</ul>
							</div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
					</ul>

					<div class="nav-divider">&nbsp;</div>

					<ul class="select">
						<li><a href="#nogo"><b>Premises </b> <!--[if IE 7]><!--></a>
							<!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <!--[if lte IE 6]></td></tr></table></a><![endif]-->
						</li>
					</ul>

					<div class="clear"></div>
				</div>
				<div class="clear"></div>
			</div>
			<!--  start nav -->

		</div>
		<div class="clear"></div>
		<!--  start nav-outer -->
	</div>
	<!--  start nav-outer-repeat................................................... END -->

	<div class="clear"></div>

	<!-- start content-outer ........................................................................................................................START -->
	<div id="content-outer">
		<!-- start content -->
		<div id="content">

			<!--  start page-heading -->
			<div id="page-heading">
				<h1>List Goverment Office Region</h1>
				<div class="group">
					<!-- loc theo ten, dau '?' de the hien ten bien truyen vao action: filterName -->
					<a href="filterIsActiveGov.action?filterName=[a-zA-Z0-9]">ALL</a> <span>|</span>
					<a href="filterIsActiveGov.action?filterName=[0-9]">0-9</a> <span>|</span>
					<a href="filterIsActiveGov.action?filterName=[aAbBcCdDeE]">A B C D
						E</a> <span>|</span> <a
						href="filterIsActiveGov.action?filterName=[fFGghHiIjJ]">F G H I J</a>
					<span>|</span> <a
						href="filterIsActiveGov.action?filterName=[kKlLmMnN]">K L M N</a> <span>|</span>
					<a href="filterIsActiveGov.action?filterName=[oOpPqQrR]">O P Q R</a> <span>|</span>
					<a href="filterIsActiveGov.action?filterName=[sStTuUvV]">S T U V</a> <span>|</span>
					<a href="filterIsActiveGov.action?filterName=[wWxXyYzZ]">W X Y Z</a>
				</div>
				<div class="isActive">
					<form method="post" action="filterIsActiveGov?filterName=${filter}">
						<table>
							<tr>
								<td><s:submit name="button" id="button" value="Create"
										action="addActionGov" /></td>
								<td style="margin-top: 2px;"><s:checkbox name="inActive"
										id="inActive" theme="simple" onclick="submit()"
										value="%{inActive}" /> <label for="login-check"
									style="padding-left: 5px;">In-Active</label></td>
							</tr>
						</table>
					</form>
				</div>
			</div>
			<!-- end page-heading -->

			<table border="0" width="100%" cellpadding="0" cellspacing="0"
				id="content-table">
				<tr>
					<th rowspan="3" class="sized"><img
						src="images/shared/side_shadowleft.jpg" width="20" height="300"
						alt="" /></th>
					<th class="topleft"></th>
					<td id="tbl-border-top">&nbsp;</td>
					<th class="topright"></th>
					<th rowspan="3" class="sized"><img
						src="images/shared/side_shadowright.jpg" width="20" height="300"
						alt="" /></th>
				</tr>
				<tr>
					<td id="tbl-border-left"></td>
					<td>
						<!--  start content-table-inner ...................................................................... START -->
						<div id="content-table-inner">

							<!--  start table-content  -->
							<div id="table-content">
								<!--  start product-table ..................................................................................... -->
								<form id="mainform" action="">
								<!--  phan trang the <display> -->
									<display:table name="list" export="false" id="product-table"
										pagesize="15" cellpadding="0" cellspacing="0"
										requestURI="/listGov">
										<display:column property="governmentName"
											title="Government Name" sortable="true" />
										<display:column property="description" title="Description"
											sortable="true" />
										<display:column property="countyName" title="County Name"
											sortable="true" />
										<display:column property="isActive" title="Is-Active"
											sortable="true" />
										<display:column style="width : 5%;" title="Edit"
											sortable="true" value="Edit" href="editGov"
											paramId="governmentId" paramProperty="governmentId">
										</display:column>
										<display:column style="width : 5%;" title="Delete"
											sortable="true" class="icon-2 info-tooltip" href="deleteGov"
											paramId="governmentId" value="Delete"
											paramProperty="governmentId"></display:column>
										<display:setProperty name="basic.empty.showtable" value="true" />
										<display:setProperty name="basic.msg.empty_list_row" value="" />
										<display:setProperty name="paging.banner.placement"
											value="bottom" />
										<display:setProperty name="paging.banner.no_items_found">
											<s:property value="noitem" />
										</display:setProperty>
										<display:setProperty name="paging.banner.one_item_found"
											value="" />
										<display:setProperty name="paging.banner.all_items_found"
											value="" />
										<display:setProperty name="paging.banner.some_items_found"
											value="" />
										<display:setProperty name="paging.banner.full" value="" />

									</display:table>
								</form>
							</div>

							<div class="clear"></div>

						</div> <!--  end content-table-inner ............................................END  -->
					</td>
					<td id="tbl-border-right"></td>
				</tr>
				<tr>
					<th class="sized bottomleft"></th>
					<td id="tbl-border-bottom">&nbsp;</td>
					<th class="sized bottomright"></th>
				</tr>
			</table>
			<div class="clear">&nbsp;</div>

		</div>
		<!--  end content -->
		<div class="clear">&nbsp;</div>
	</div>
	<!--  end content-outer........................................................END -->
	<div class="clear">&nbsp;</div>

	<!-- start footer -->
	<div id="footer">

		<!--  start footer-left -->
		<div id="footer-left">Admin &copy; Copyright Intern . All rights
			reserved.</div>
		<!--  end footer-left -->
		<div class="clear">&nbsp;</div>
	</div>
	<!-- end footer -->
</body>
</html>